package com.shuma.shopmanage.shopmodule.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shuma.shopmanage.model.shop.model.GoodsProxy;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author wp
 * @data 2023/10/24
 */
@Mapper
public interface GoodsProxyMapper extends BaseMapper<GoodsProxy> {
    @Select("select * from goodsproxy where goodsId = #{goodsId} and proxyId = #{userId}")
    public GoodsProxy getGoodsProxy(@Param("goodsId")Long goodsId,@Param("userId")Long userId);

}
